package com.woniuxy.carrental.zqqmapper;

import com.woniuxy.carrental.entity.RentCarPrice;
import com.woniuxy.carrental.mapper.RentCarPriceMapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.Date;
import java.util.List;

/**
 * @author author
 * @create 2021-09-28 13:52
 */


@SpringBootTest
public class TsetRenrCarPrinceMapper {

    @Autowired
    RentCarPriceMapper rentCarPriceMapper;

    @Test
     public void testaddRenrCarInfo(){
         rentCarPriceMapper.addRentCarPrice(new RentCarPrice(null, new Date(), new Date(), 12.0));
     }

    @Test
    public void testselectRenrCarInfo(){
        List<RentCarPrice> rentCarPrices = rentCarPriceMapper.selectAllRentCarPrice();
        System.out.println(rentCarPrices);
    }


    @Test
    public void stetselectRenrCarInfosdas(){
        List<String> swk = rentCarPriceMapper.getpermissionByaccount("swk");
        System.out.println(swk);


    }






}
